const state = {
  collapsed: localStorage.getItem('collapsed') === 'true'
}
const mutations = {
  CHANGE_COLLAPSED (state) {
    state.collapsed = !state.collapsed
    localStorage.setItem('collapsed', state.collapsed)
  }
}
const actions = {
  changeCollapsedAction (context) {
    context.commit('CHANGE_COLLAPSED')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
